import {createRouter, createWebHistory} from "vue-router";
const routes = [
    {
        path: '/',
        name: 'Home',
        component: () => import('@/view/Home.vue')
    },
    {
        path: '/about',
        name: 'About',
        component: () => import('@/view/About.vue')
    },
    {
        path: '/contact',
        name: 'Contact',
        component: () => import('@/view/Contact.vue')
    },
    {
        path: '/:pathMatch(.*)*',
        name: 'NotFound',
        component: () => import('@/view/NotFound.vue')

    },
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/view/login.vue')

    },

    {
        path: '/qrcode/dologin',
        name: 'dologin',
        component: () => import('@/view/qrcode/wx.vue')

    }
    ,

    {
        path: '/css/learn',
        name: 'xcss',
        component: () => import('@/view/csslearn.vue')

    }

]



const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router;
